<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>ZBClient | zeebe-node</title>
	<meta name="description" content="Documentation for zeebe-node">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">zeebe-node</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">zeebe-node</a>
				</li>
				<li>
					<a href="ZBClient.html">ZBClient</a>
				</li>
			</ul>
			<h1>Class ZBClient</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<dl class="tsd-comment-tags">
						<dt>description</dt>
						<dd><p>A client for interacting with a Zeebe broker. With the connection credentials set in the environment, you can use a &quot;zero-conf&quot; constructor with no arguments.</p>
						</dd>
						<dt>example</dt>
						<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">topology</span><span style="color: #000000">().</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">info</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">    </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #267F99">JSON</span><span style="color: #000000">.</span><span style="color: #795E26">stringify</span><span style="color: #000000">(</span><span style="color: #001080">info</span><span style="color: #000000">, </span><span style="color: #0000FF">null</span><span style="color: #000000">, </span><span style="color: #098658">2</span><span style="color: #000000">))</span>
<span style="color: #000000">)</span>
</code></pre>
						</dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="tsd-signature-type">TypedEmitter</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">typeof </span><a href="../modules.html#ConnectionStatusEvent" class="tsd-signature-type" data-tsd-kind="Variable">ConnectionStatusEvent</a><span class="tsd-signature-symbol">&gt;</span>
						<ul class="tsd-hierarchy">
							<li>
								<span class="target">ZBClient</span>
							</li>
						</ul>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="ZBClient.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#basicAuth" class="tsd-kind-icon">basic<wbr>Auth</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#closePromise" class="tsd-kind-icon">close<wbr>Promise</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#closing" class="tsd-kind-icon">closing</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#connected" class="tsd-kind-icon">connected</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#connectionTolerance" class="tsd-kind-icon">connection<wbr>Tolerance</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#customSSL" class="tsd-kind-icon">customSSL</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#gatewayAddress" class="tsd-kind-icon">gateway<wbr>Address</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#grpc" class="tsd-kind-icon">grpc</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#logger" class="tsd-kind-icon">logger</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#loglevel" class="tsd-kind-icon">loglevel</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#maxRetries" class="tsd-kind-icon">max<wbr>Retries</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#maxRetryTimeout" class="tsd-kind-icon">max<wbr>Retry<wbr>Timeout</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#oAuth" class="tsd-kind-icon">o<wbr>Auth</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#onConnectionError" class="tsd-kind-icon">on<wbr>Connection<wbr>Error</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#onReady" class="tsd-kind-icon">on<wbr>Ready</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#options" class="tsd-kind-icon">options</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="ZBClient.html#readied" class="tsd-kind-icon">readied</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#retry" class="tsd-kind-icon">retry</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#stdout" class="tsd-kind-icon">stdout</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#useTLS" class="tsd-kind-icon">useTLS</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#workerCount" class="tsd-kind-icon">worker<wbr>Count</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#workers" class="tsd-kind-icon">workers</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="ZBClient.html#DEFAULT_CONNECTION_TOLERANCE" class="tsd-kind-icon">DEFAULT_<wbr>CONNECTION_<wbr>TOLERANCE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="ZBClient.html#DEFAULT_LONGPOLL_PERIOD" class="tsd-kind-icon">DEFAULT_<wbr>LONGPOLL_<wbr>PERIOD</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="ZBClient.html#DEFAULT_MAX_RETRIES" class="tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRIES</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="ZBClient.html#DEFAULT_MAX_RETRY_TIMEOUT" class="tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRY_<wbr>TIMEOUT</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="ZBClient.html#DEFAULT_POLL_INTERVAL" class="tsd-kind-icon">DEFAULT_<wbr>POLL_<wbr>INTERVAL</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#_onConnectionError" class="tsd-kind-icon">_on<wbr>Connection<wbr>Error</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#activateJobs" class="tsd-kind-icon">activate<wbr>Jobs</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#cancelProcessInstance" class="tsd-kind-icon">cancel<wbr>Process<wbr>Instance</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#close" class="tsd-kind-icon">close</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#completeJob" class="tsd-kind-icon">complete<wbr>Job</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="ZBClient.html#constructGrpcClient" class="tsd-kind-icon">construct<wbr>Grpc<wbr>Client</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#createBatchWorker" class="tsd-kind-icon">create<wbr>Batch<wbr>Worker</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#createProcessInstance" class="tsd-kind-icon">create<wbr>Process<wbr>Instance</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#createProcessInstanceWithResult" class="tsd-kind-icon">create<wbr>Process<wbr>Instance<wbr>With<wbr>Result</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#createWorker" class="tsd-kind-icon">create<wbr>Worker</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#deployProcess" class="tsd-kind-icon">deploy<wbr>Process</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#deployResource" class="tsd-kind-icon">deploy<wbr>Resource</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="ZBClient.html#emit" class="tsd-kind-icon">emit</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private"><a href="ZBClient.html#executeOperation" class="tsd-kind-icon">execute<wbr>Operation</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#failJob" class="tsd-kind-icon">fail<wbr>Job</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#getServiceTypesFromBpmn" class="tsd-kind-icon">get<wbr>Service<wbr>Types<wbr>From<wbr>Bpmn</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#modifyProcessInstance" class="tsd-kind-icon">modify<wbr>Process<wbr>Instance</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="ZBClient.html#off" class="tsd-kind-icon">off</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="ZBClient.html#on" class="tsd-kind-icon">on</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#publishMessage" class="tsd-kind-icon">publish<wbr>Message</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#publishStartMessage" class="tsd-kind-icon">publish<wbr>Start<wbr>Message</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="ZBClient.html#removeAllListeners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#resolveIncident" class="tsd-kind-icon">resolve<wbr>Incident</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private"><a href="ZBClient.html#retryOnFailure" class="tsd-kind-icon">retry<wbr>OnFailure</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="ZBClient.html#setVariables" class="tsd-kind-icon">set<wbr>Variables</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#throwError" class="tsd-kind-icon">throw<wbr>Error</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#topology" class="tsd-kind-icon">topology</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="ZBClient.html#updateJobRetries" class="tsd-kind-icon">update<wbr>Job<wbr>Retries</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
						<li class="tsd-signature tsd-kind-icon">new ZBClient<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/ZBClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBClientOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></li>
						<li class="tsd-signature tsd-kind-icon">new ZBClient<span class="tsd-signature-symbol">(</span>gatewayAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/ZBClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBClientOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides TypedEmitter&lt;typeof ConnectionStatusEvent&gt;.constructor</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L113">src/zb/ZBClient.ts:113</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/ZBClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBClientOptions</a></h5>
									<div class="tsd-comment tsd-typography">
										<div class="lead">
											<p>Zero-conf constructor. The entire ZBClient connection config can be passed in via the environment.</p>
										</div>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides TypedEmitter&lt;typeof ConnectionStatusEvent&gt;.constructor</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L114">src/zb/ZBClient.ts:114</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>gatewayAddress: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/ZBClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBClientOptions</a></h5>
									<div class="tsd-comment tsd-typography">
										<div class="lead">
											<p>Zero-conf constructor. The entire ZBClient connection config can be passed in via the environment.</p>
										</div>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="basicAuth" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagOptional">Optional</span> basic<wbr>Auth</h3>
					<div class="tsd-signature tsd-kind-icon">basic<wbr>Auth<span class="tsd-signature-symbol">:</span> <a href="../interfaces/BasicAuthConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">BasicAuthConfig</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L104">src/zb/ZBClient.ts:104</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="closePromise" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagOptional">Optional</span> close<wbr>Promise</h3>
					<div class="tsd-signature tsd-kind-icon">close<wbr>Promise<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L85">src/zb/ZBClient.ts:85</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="closing" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> closing</h3>
					<div class="tsd-signature tsd-kind-icon">closing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L86">src/zb/ZBClient.ts:86</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="connected" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> connected</h3>
					<div class="tsd-signature tsd-kind-icon">connected<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L78">src/zb/ZBClient.ts:78</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="connectionTolerance" class="tsd-anchor"></a>
					<h3>connection<wbr>Tolerance</h3>
					<div class="tsd-signature tsd-kind-icon">connection<wbr>Tolerance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L74">src/zb/ZBClient.ts:74</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="customSSL" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagOptional">Optional</span> customSSL</h3>
					<div class="tsd-signature tsd-kind-icon">customSSL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CustomSSL</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L107">src/zb/ZBClient.ts:107</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="gatewayAddress" class="tsd-anchor"></a>
					<h3>gateway<wbr>Address</h3>
					<div class="tsd-signature tsd-kind-icon">gateway<wbr>Address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L80">src/zb/ZBClient.ts:80</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="grpc" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> grpc</h3>
					<div class="tsd-signature tsd-kind-icon">grpc<span class="tsd-signature-symbol">:</span> <a href="../interfaces/ZBGrpc.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBGrpc</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L88">src/zb/ZBClient.ts:88</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="logger" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> logger</h3>
					<div class="tsd-signature tsd-kind-icon">logger<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StatefulLogInterceptor</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L84">src/zb/ZBClient.ts:84</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="loglevel" class="tsd-anchor"></a>
					<h3>loglevel</h3>
					<div class="tsd-signature tsd-kind-icon">loglevel<span class="tsd-signature-symbol">:</span> <a href="../modules.html#Loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">Loglevel</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L81">src/zb/ZBClient.ts:81</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="maxRetries" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> max<wbr>Retries</h3>
					<div class="tsd-signature tsd-kind-icon">max<wbr>Retries<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L96">src/zb/ZBClient.ts:96</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="maxRetryTimeout" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> max<wbr>Retry<wbr>Timeout</h3>
					<div class="tsd-signature tsd-kind-icon">max<wbr>Retry<wbr>Timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L99">src/zb/ZBClient.ts:99</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="oAuth" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagOptional">Optional</span> o<wbr>Auth</h3>
					<div class="tsd-signature tsd-kind-icon">o<wbr>Auth<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">OAuthProvider</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L103">src/zb/ZBClient.ts:103</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="onConnectionError" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> on<wbr>Connection<wbr>Error</h3>
					<div class="tsd-signature tsd-kind-icon">on<wbr>Connection<wbr>Error<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L83">src/zb/ZBClient.ts:83</a></li>
						</ul>
					</aside>
					<div class="tsd-type-declaration">
						<h4>Type declaration</h4>
						<ul class="tsd-parameters">
							<li class="tsd-parameter-signature">
								<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="onReady" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> on<wbr>Ready</h3>
					<div class="tsd-signature tsd-kind-icon">on<wbr>Ready<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L82">src/zb/ZBClient.ts:82</a></li>
						</ul>
					</aside>
					<div class="tsd-type-declaration">
						<h4>Type declaration</h4>
						<ul class="tsd-parameters">
							<li class="tsd-parameter-signature">
								<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="options" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> options</h3>
					<div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/ZBClientOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBClientOptions</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L89">src/zb/ZBClient.ts:89</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="readied" class="tsd-anchor"></a>
					<h3>readied</h3>
					<div class="tsd-signature tsd-kind-icon">readied<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L79">src/zb/ZBClient.ts:79</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="retry" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> retry</h3>
					<div class="tsd-signature tsd-kind-icon">retry<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L95">src/zb/ZBClient.ts:95</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="stdout" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> stdout</h3>
					<div class="tsd-signature tsd-kind-icon">stdout<span class="tsd-signature-symbol">:</span> <a href="../interfaces/ZBCustomLogger.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBCustomLogger</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L106">src/zb/ZBClient.ts:106</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="useTLS" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> useTLS</h3>
					<div class="tsd-signature tsd-kind-icon">useTLS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L105">src/zb/ZBClient.ts:105</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="workerCount" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> worker<wbr>Count</h3>
					<div class="tsd-signature tsd-kind-icon">worker<wbr>Count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L90">src/zb/ZBClient.ts:90</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
					<a name="workers" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> workers</h3>
					<div class="tsd-signature tsd-kind-icon">workers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><a href="ZBWorker.html" class="tsd-signature-type" data-tsd-kind="Class">ZBWorker</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ZBBatchWorker</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L91">src/zb/ZBClient.ts:91</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="DEFAULT_CONNECTION_TOLERANCE" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> DEFAULT_<wbr>CONNECTION_<wbr>TOLERANCE</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>CONNECTION_<wbr>TOLERANCE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Milliseconds</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L65">src/zb/ZBClient.ts:65</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
					<a name="DEFAULT_LONGPOLL_PERIOD" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> DEFAULT_<wbr>LONGPOLL_<wbr>PERIOD</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>LONGPOLL_<wbr>PERIOD<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Seconds</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L70">src/zb/ZBClient.ts:70</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
					<a name="DEFAULT_MAX_RETRIES" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> DEFAULT_<wbr>MAX_<wbr>RETRIES</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRIES<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">-1</span><span class="tsd-signature-symbol"> = -1</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L68">src/zb/ZBClient.ts:68</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
					<a name="DEFAULT_MAX_RETRY_TIMEOUT" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> DEFAULT_<wbr>MAX_<wbr>RETRY_<wbr>TIMEOUT</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRY_<wbr>TIMEOUT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Seconds</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L69">src/zb/ZBClient.ts:69</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
					<a name="DEFAULT_POLL_INTERVAL" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> DEFAULT_<wbr>POLL_<wbr>INTERVAL</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>POLL_<wbr>INTERVAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Milliseconds</span><span class="tsd-signature-symbol"> = ...</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L71">src/zb/ZBClient.ts:71</a></li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
					<a name="_onConnectionError" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> _on<wbr>Connection<wbr>Error</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
						<li class="tsd-signature tsd-kind-icon">_on<wbr>Connection<wbr>Error<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1329">src/zb/ZBClient.ts:1329</a></li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="activateJobs" class="tsd-anchor"></a>
					<h3>activate<wbr>Jobs</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">activate<wbr>Jobs&lt;Variables, CustomHeaders&gt;<span class="tsd-signature-symbol">(</span>request<span class="tsd-signature-symbol">: </span><a href="../interfaces/ActivateJobsRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ActivateJobsRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Job.html" class="tsd-signature-type" data-tsd-kind="Interface">Job</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a><span class="tsd-signature-symbol">, </span><a href="../interfaces/ICustomHeaders.html" class="tsd-signature-type" data-tsd-kind="Interface">ICustomHeaders</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L262">src/zb/ZBClient.ts:262</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>activateJobs allows you to manually activate jobs, effectively building a worker; rather than using the ZBWorker class.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">activateJobs</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">maxJobsToActivate:</span><span style="color: #000000"> </span><span style="color: #098658">5</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">requestTimeout:</span><span style="color: #000000"> </span><span style="color: #098658">6000</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">timeout:</span><span style="color: #000000"> </span><span style="color: #098658">5</span><span style="color: #000000"> * </span><span style="color: #098658">60</span><span style="color: #000000"> * </span><span style="color: #098658">1000</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;process-payment&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">worker:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;my-worker-uuid&#039;</span>
<span style="color: #000000">}).</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">jobs</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">     </span><span style="color: #001080">jobs</span><span style="color: #000000">.</span><span style="color: #795E26">forEach</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">    </span><span style="color: #008000">// business logic</span>
<span style="color: #000000">    </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">completeJob</span><span style="color: #000000">({</span>
<span style="color: #000000">      </span><span style="color: #001080">jobKey:</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #001080">key</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">variables:</span><span style="color: #000000"> {}</span>
<span style="color: #000000">    ))</span>
<span style="color: #000000">  )</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables = <a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a></h4>
								</li>
								<li>
									<h4>CustomHeaders = <a href="../interfaces/ICustomHeaders.html" class="tsd-signature-type" data-tsd-kind="Interface">ICustomHeaders</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>request: <a href="../interfaces/ActivateJobsRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ActivateJobsRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Job.html" class="tsd-signature-type" data-tsd-kind="Interface">Job</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a><span class="tsd-signature-symbol">, </span><a href="../interfaces/ICustomHeaders.html" class="tsd-signature-type" data-tsd-kind="Interface">ICustomHeaders</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="cancelProcessInstance" class="tsd-anchor"></a>
					<h3>cancel<wbr>Process<wbr>Instance</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">cancel<wbr>Process<wbr>Instance<span class="tsd-signature-symbol">(</span>processInstanceKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L298">src/zb/ZBClient.ts:298</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Cancel a process instance by process instance key.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">cancelProcessInstance</span><span style="color: #000000">(</span><span style="color: #001080">processInstanceId</span><span style="color: #000000">)</span>
<span style="color: #000000">    .</span><span style="color: #795E26">catch</span><span style="color: #000000">(</span>
<span style="color: #000000">        (</span><span style="color: #001080">e</span><span style="color: #000000">: </span><span style="color: #267F99">any</span><span style="color: #000000">) </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">`Error cancelling instance: </span><span style="color: #0000FF">${</span><span style="color: #001080">e</span><span style="color: #000000FF">.</span><span style="color: #001080">message</span><span style="color: #0000FF">}</span><span style="color: #A31515">`</span><span style="color: #000000">)</span>
<span style="color: #000000">)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>processInstanceKey: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="close" class="tsd-anchor"></a>
					<h3>close</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">close<span class="tsd-signature-symbol">(</span>timeout<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L548">src/zb/ZBClient.ts:548</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Gracefully shut down all workers, draining existing tasks, and return when it is safe to exit.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createWorker</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">taskType:</span>
<span style="color: #000000">})</span>

<span style="color: #795E26">setTimeout</span><span style="color: #000000">(</span><span style="color: #0000FF">async</span><span style="color: #000000"> () </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> {</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">close</span><span style="color: #000000">()</span>
<span style="color: #000000">  </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&#039;All work completed.&#039;</span><span style="color: #000000">)</span>
<span style="color: #000000">}),</span>
<span style="color: #000000">  </span><span style="color: #098658">5</span><span style="color: #000000"> * </span><span style="color: #098658">60</span><span style="color: #000000"> * </span><span style="color: #098658">1000</span><span style="color: #000000"> </span><span style="color: #008000">// 5 mins</span>
<span style="color: #000000">)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> timeout: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="completeJob" class="tsd-anchor"></a>
					<h3>complete<wbr>Job</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">complete<wbr>Job<span class="tsd-signature-symbol">(</span>completeJobRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/CompleteJobRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">CompleteJobRequest</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L587">src/zb/ZBClient.ts:587</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Explicitly complete a job. The method is useful for manually constructing a worker.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">activateJobs</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">maxJobsToActivate:</span><span style="color: #000000"> </span><span style="color: #098658">5</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">requestTimeout:</span><span style="color: #000000"> </span><span style="color: #098658">6000</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">timeout:</span><span style="color: #000000"> </span><span style="color: #098658">5</span><span style="color: #000000"> * </span><span style="color: #098658">60</span><span style="color: #000000"> * </span><span style="color: #098658">1000</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;process-payment&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">worker:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;my-worker-uuid&#039;</span>
<span style="color: #000000">}).</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">jobs</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">     </span><span style="color: #001080">jobs</span><span style="color: #000000">.</span><span style="color: #795E26">forEach</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">    </span><span style="color: #008000">// business logic</span>
<span style="color: #000000">    </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">completeJob</span><span style="color: #000000">({</span>
<span style="color: #000000">      </span><span style="color: #001080">jobKey:</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #001080">key</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">variables:</span><span style="color: #000000"> {}</span>
<span style="color: #000000">    ))</span>
<span style="color: #000000">  )</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>completeJobRequest: <a href="../interfaces/CompleteJobRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">CompleteJobRequest</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
					<a name="constructGrpcClient" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> construct<wbr>Grpc<wbr>Client</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
						<li class="tsd-signature tsd-kind-icon">construct<wbr>Grpc<wbr>Client<span class="tsd-signature-symbol">(</span>__namedParameters<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>grpcConfig<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>namespace<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>tasktype<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>onConnectionError<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>onReady<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>logConfig<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBLoggerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBLoggerConfig</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>grpcClient<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBGrpc.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBGrpc</a><span class="tsd-signature-symbol">; </span>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">StatefulLogInterceptor</span><span class="tsd-signature-symbol"> }</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1263">src/zb/ZBClient.ts:1263</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>__namedParameters: <span class="tsd-signature-symbol">{ </span>grpcConfig<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>namespace<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>tasktype<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>onConnectionError<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>onReady<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>logConfig<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBLoggerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBLoggerConfig</a><span class="tsd-signature-symbol"> }</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter">
											<h5>grpc<wbr>Config<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>namespace<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>tasktype<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>onConnectionError<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>onReady<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></h5>
											<ul class="tsd-parameters">
												<li class="tsd-parameter">
													<h5>namespace<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
												</li>
												<li class="tsd-parameter">
													<h5><span class="tsd-flag ts-flagOptional">Optional</span> tasktype<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
												</li>
												<li class="tsd-parameter">
													<h5>on<wbr>Connection<wbr>Error<span class="tsd-signature-symbol">: </span>function</h5>
													<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
														<li class="tsd-signature tsd-kind-icon">on<wbr>Connection<wbr>Error<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
													</ul>
													<ul class="tsd-descriptions">
														<li class="tsd-description">
															<aside class="tsd-sources">
																<ul>
																	<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1269">src/zb/ZBClient.ts:1269</a></li>
																</ul>
															</aside>
															<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
														</li>
													</ul>
												</li>
												<li class="tsd-parameter">
													<h5>on<wbr>Ready<span class="tsd-signature-symbol">: </span>function</h5>
													<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal">
														<li class="tsd-signature tsd-kind-icon">on<wbr>Ready<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
													</ul>
													<ul class="tsd-descriptions">
														<li class="tsd-description">
															<aside class="tsd-sources">
																<ul>
																	<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1268">src/zb/ZBClient.ts:1268</a></li>
																</ul>
															</aside>
															<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
														</li>
													</ul>
												</li>
											</ul>
										</li>
										<li class="tsd-parameter">
											<h5>log<wbr>Config<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBLoggerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBLoggerConfig</a></h5>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>grpcClient<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBGrpc.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBGrpc</a><span class="tsd-signature-symbol">; </span>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">StatefulLogInterceptor</span><span class="tsd-signature-symbol"> }</span></h4>
							<ul class="tsd-parameters">
								<li class="tsd-parameter">
									<h5>grpc<wbr>Client<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBGrpc.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBGrpc</a></h5>
								</li>
								<li class="tsd-parameter">
									<h5>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">StatefulLogInterceptor</span></h5>
								</li>
							</ul>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="createBatchWorker" class="tsd-anchor"></a>
					<h3>create<wbr>Batch<wbr>Worker</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Batch<wbr>Worker&lt;WorkerInputVariables, CustomHeaderShape, WorkerOutputVariables&gt;<span class="tsd-signature-symbol">(</span>conf<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBBatchWorkerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBBatchWorkerConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZBBatchWorker</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L347">src/zb/ZBClient.ts:347</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Create a new Batch Worker. This is useful when you need to rate limit access to an external resource.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #008000">// Helper function to find a job by its key</span>
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #795E26">findJobByKey</span><span style="color: #000000"> = </span><span style="color: #001080">jobs</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">key</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">jobs</span><span style="color: #000000">.</span><span style="color: #795E26">filter</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #001080">jobKey</span><span style="color: #000000"> === </span><span style="color: #001080">id</span><span style="color: #000000">)?.[</span><span style="color: #098658">0</span><span style="color: #000000">] ?? []</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #795E26">handler</span><span style="color: #000000"> = </span><span style="color: #0000FF">async</span><span style="color: #000000"> (</span><span style="color: #001080">jobs</span><span style="color: #000000">: </span><span style="color: #267F99">BatchedJob</span><span style="color: #000000">[]) </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> {</span>
<span style="color: #000000">  </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Let&#039;s do this!&quot;</span><span style="color: #000000">)</span>
<span style="color: #000000">  </span><span style="color: #0000FF">const</span><span style="color: #000000"> {</span><span style="color: #0070C1">jobKey</span><span style="color: #000000">, </span><span style="color: #0070C1">variables</span><span style="color: #000000">} = </span><span style="color: #001080">job</span>
<span style="color: #000000">  </span><span style="color: #008000">// Construct some hypothetical payload with correlation ids and requests</span>
<span style="color: #000000">  </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">req</span><span style="color: #000000"> = </span><span style="color: #001080">jobs</span><span style="color: #000000">.</span><span style="color: #795E26">map</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> ({</span><span style="color: #001080">id:</span><span style="color: #000000"> </span><span style="color: #001080">jobKey</span><span style="color: #000000">, </span><span style="color: #001080">data:</span><span style="color: #000000"> </span><span style="color: #001080">variables</span><span style="color: #000000">.</span><span style="color: #001080">request</span><span style="color: #000000">}))</span>
<span style="color: #000000">  </span><span style="color: #008000">// An uncaught exception will not be managed by the library</span>
<span style="color: #000000">     </span><span style="color: #AF00DB">try</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #008000">// Our API wrapper turns that into a request, and returns</span>
<span style="color: #000000">    </span><span style="color: #008000">// an array of results with ids</span>
<span style="color: #000000">    </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">outcomes</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #0070C1">API</span><span style="color: #000000">.</span><span style="color: #795E26">post</span><span style="color: #000000">(</span><span style="color: #001080">req</span><span style="color: #000000">)</span>
<span style="color: #000000">    </span><span style="color: #008000">// Construct a find function for these jobs</span>
<span style="color: #000000">    </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">getJob</span><span style="color: #000000"> = </span><span style="color: #795E26">findJobByKey</span><span style="color: #000000">(</span><span style="color: #001080">jobs</span><span style="color: #000000">)</span>
<span style="color: #000000">    </span><span style="color: #008000">// Iterate over the results and call the succeed method on the corresponding job,</span>
<span style="color: #000000">    </span><span style="color: #008000">// passing in the correlated outcome of the API call</span>
<span style="color: #000000">    </span><span style="color: #001080">outcomes</span><span style="color: #000000">.</span><span style="color: #795E26">forEach</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #795E26">getJob</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">id</span><span style="color: #000000">)?.</span><span style="color: #795E26">complete</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">data</span><span style="color: #000000">))</span>
<span style="color: #000000">  } </span><span style="color: #AF00DB">catch</span><span style="color: #000000"> (</span><span style="color: #001080">e</span><span style="color: #000000">) {</span>
<span style="color: #000000">    </span><span style="color: #001080">jobs</span><span style="color: #000000">.</span><span style="color: #795E26">forEach</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #795E26">fail</span><span style="color: #000000">(</span><span style="color: #001080">e</span><span style="color: #000000">.</span><span style="color: #001080">message</span><span style="color: #000000">))</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">}</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">batchWorker</span><span style="color: #000000"> = </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createBatchWorker</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">taskType:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;get-data-from-external-api&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">taskHandler:</span><span style="color: #000000"> </span><span style="color: #001080">handler</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">jobBatchMinSize:</span><span style="color: #000000"> </span><span style="color: #098658">10</span><span style="color: #000000">, </span><span style="color: #008000">// at least 10 at a time</span>
<span style="color: #000000">  </span><span style="color: #001080">jobBatchMaxTime:</span><span style="color: #000000"> </span><span style="color: #098658">60</span><span style="color: #000000">, </span><span style="color: #008000">// or every 60 seconds, whichever comes first</span>
<span style="color: #000000">  </span><span style="color: #001080">timeout:</span><span style="color: #000000"> </span><span style="color: #001080">Duration</span><span style="color: #000000">.</span><span style="color: #001080">seconds</span><span style="color: #000000">.</span><span style="color: #795E26">of</span><span style="color: #000000">(</span><span style="color: #098658">80</span><span style="color: #000000">) </span><span style="color: #008000">// 80 second timeout means we have 20 seconds to process at least</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>WorkerInputVariables = <a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a></h4>
								</li>
								<li>
									<h4>CustomHeaderShape = <a href="../interfaces/ICustomHeaders.html" class="tsd-signature-type" data-tsd-kind="Interface">ICustomHeaders</a></h4>
								</li>
								<li>
									<h4>WorkerOutputVariables = <a href="../interfaces/IOutputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IOutputVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>conf: <a href="../interfaces/ZBBatchWorkerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBBatchWorkerConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ZBBatchWorker</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="createProcessInstance" class="tsd-anchor"></a>
					<h3>create<wbr>Process<wbr>Instance</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Process<wbr>Instance&lt;Variables&gt;<span class="tsd-signature-symbol">(</span>bpmnProcessId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, variables<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
						<li class="tsd-signature tsd-kind-icon">create<wbr>Process<wbr>Instance&lt;Variables&gt;<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/CreateProcessInstanceReq.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceReq</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L627">src/zb/ZBClient.ts:627</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Create a new process instance. Asynchronously returns a process instance id.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createProcessInstance</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">bpmnProcessId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;onboarding-process&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variables:</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #001080">customerId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;uuid-3455&#039;</span>
<span style="color: #000000">  },</span>
<span style="color: #000000">  </span><span style="color: #001080">version:</span><span style="color: #000000"> </span><span style="color: #098658">5</span><span style="color: #000000"> </span><span style="color: #008000">// optional, will use latest by default</span>
<span style="color: #000000">}).</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #267F99">JSON</span><span style="color: #000000">.</span><span style="color: #795E26">stringify</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000">, </span><span style="color: #0000FF">null</span><span style="color: #000000">, </span><span style="color: #098658">2</span><span style="color: #000000">)))</span>

<span style="color: #000000">    </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createProcessInstance</span><span style="color: #000000">({</span>
<span style="color: #000000">        </span><span style="color: #001080">bpmnProcessId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;SkipFirstTask&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">        </span><span style="color: #001080">variables:</span><span style="color: #000000"> { </span><span style="color: #001080">id:</span><span style="color: #000000"> </span><span style="color: #001080">random</span><span style="color: #000000"> },</span>
<span style="color: #000000">        </span><span style="color: #001080">startInstructions:</span><span style="color: #000000"> [{</span><span style="color: #001080">elementId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;second_service_task&#039;</span><span style="color: #000000">}]</span>
<span style="color: #000000">    }).</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> (</span><span style="color: #001080">id</span><span style="color: #000000"> = </span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">))</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables<span class="tsd-signature-symbol">: </span><a href="../interfaces/JSONDoc.html" class="tsd-signature-type" data-tsd-kind="Interface">JSONDoc</a> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bpmnProcessId: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>variables: <span class="tsd-signature-type">Variables</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L631">src/zb/ZBClient.ts:631</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables<span class="tsd-signature-symbol">: </span><a href="../interfaces/JSONDoc.html" class="tsd-signature-type" data-tsd-kind="Interface">JSONDoc</a> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/CreateProcessInstanceReq.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceReq</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="createProcessInstanceWithResult" class="tsd-anchor"></a>
					<h3>create<wbr>Process<wbr>Instance<wbr>With<wbr>Result</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Process<wbr>Instance<wbr>With<wbr>Result&lt;Variables, Result&gt;<span class="tsd-signature-symbol">(</span>bpmnProcessId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, variables<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
						<li class="tsd-signature tsd-kind-icon">create<wbr>Process<wbr>Instance<wbr>With<wbr>Result&lt;Variables, Result&gt;<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/CreateProcessInstanceWithResultReq.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultReq</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
						<li class="tsd-signature tsd-kind-icon">create<wbr>Process<wbr>Instance<wbr>With<wbr>Result&lt;Variables, Result&gt;<span class="tsd-signature-symbol">(</span>bpmnProcessId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, variables<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L679">src/zb/ZBClient.ts:679</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Create a process instance, and return a Promise that returns the outcome of the process.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createProcessInstanceWithResult</span><span style="color: #000000">(</span><span style="color: #A31515">&#039;order-process&#039;</span><span style="color: #000000">, {</span>
<span style="color: #000000">  </span><span style="color: #001080">customerId:</span><span style="color: #000000"> </span><span style="color: #098658">123</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">invoiceId:</span><span style="color: #000000"> </span><span style="color: #098658">567</span>
<span style="color: #000000">})</span>
<span style="color: #000000">  .</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #001080">log</span><span style="color: #000000">)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables<span class="tsd-signature-symbol">: </span><a href="../interfaces/JSONDoc.html" class="tsd-signature-type" data-tsd-kind="Interface">JSONDoc</a> = <a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a></h4>
								</li>
								<li>
									<h4>Result = <a href="../interfaces/IOutputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IOutputVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bpmnProcessId: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>variables: <span class="tsd-signature-type">Variables</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L686">src/zb/ZBClient.ts:686</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables<span class="tsd-signature-symbol">: </span><a href="../interfaces/JSONDoc.html" class="tsd-signature-type" data-tsd-kind="Interface">JSONDoc</a> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
								<li>
									<h4>Result = <a href="../interfaces/IOutputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IOutputVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/CreateProcessInstanceWithResultReq.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultReq</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L692">src/zb/ZBClient.ts:692</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables<span class="tsd-signature-symbol">: </span><a href="../interfaces/JSONDoc.html" class="tsd-signature-type" data-tsd-kind="Interface">JSONDoc</a> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
								<li>
									<h4>Result = <a href="../interfaces/IOutputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IOutputVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bpmnProcessId: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>variables: <span class="tsd-signature-type">Variables</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/CreateProcessInstanceWithResultResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">CreateProcessInstanceWithResultResponse</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Result</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="createWorker" class="tsd-anchor"></a>
					<h3>create<wbr>Worker</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Worker&lt;WorkerInputVariables, CustomHeaderShape, WorkerOutputVariables&gt;<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/ZBWorkerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBWorkerConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ZBWorker.html" class="tsd-signature-type" data-tsd-kind="Class">ZBWorker</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L464">src/zb/ZBClient.ts:464</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Create a worker that polls the gateway for jobs and executes a job handler when units of work are available.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #0070C1">ZB</span><span style="color: #000000">.</span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbWorker</span><span style="color: #000000"> = </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createWorker</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">taskType:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;demo-service&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">taskHandler:</span><span style="color: #000000"> </span><span style="color: #001080">myTaskHandler</span><span style="color: #000000">,</span>
<span style="color: #000000">})</span>

<span style="color: #008000">// A job handler must return one of job.complete, job.fail, job.error, or job.forward</span>
<span style="color: #008000">// Note: unhandled exceptions in the job handler cause the library to call job.fail</span>
<span style="color: #0000FF">async</span><span style="color: #000000"> </span><span style="color: #0000FF">function</span><span style="color: #000000"> </span><span style="color: #795E26">myTaskHandler</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000">) {</span>
<span style="color: #000000">  </span><span style="color: #001080">zbWorker</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&#039;Task variables&#039;</span><span style="color: #000000">, </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #001080">variables</span><span style="color: #000000">)</span>

<span style="color: #000000">  </span><span style="color: #008000">// Task worker business logic goes here</span>
<span style="color: #000000">  </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">updateToBrokerVariables</span><span style="color: #000000"> = {</span>
<span style="color: #000000">    </span><span style="color: #001080">updatedProperty:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;newValue&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  }</span>

<span style="color: #000000">  </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">res</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #795E26">callExternalSystem</span><span style="color: #000000">(</span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #001080">variables</span><span style="color: #000000">)</span>

<span style="color: #000000">  </span><span style="color: #AF00DB">if</span><span style="color: #000000"> (</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">code</span><span style="color: #000000"> === </span><span style="color: #A31515">&#039;SUCCESS&#039;</span><span style="color: #000000">) {</span>
<span style="color: #000000">    </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #795E26">complete</span><span style="color: #000000">({</span>
<span style="color: #000000">       ...</span><span style="color: #001080">updateToBrokerVariables</span><span style="color: #000000">,</span>
<span style="color: #000000">       ...</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">values</span>
<span style="color: #000000">    })</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">if</span><span style="color: #000000"> (</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">code</span><span style="color: #000000"> === </span><span style="color: #A31515">&#039;BUSINESS_ERROR&#039;</span><span style="color: #000000">) {</span>
<span style="color: #000000">    </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #795E26">error</span><span style="color: #000000">({</span>
<span style="color: #000000">      </span><span style="color: #001080">code:</span><span style="color: #000000"> </span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">errorCode</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">message:</span><span style="color: #000000"> </span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">message</span>
<span style="color: #000000">    })</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">if</span><span style="color: #000000"> (</span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">code</span><span style="color: #000000"> === </span><span style="color: #A31515">&#039;ERROR&#039;</span><span style="color: #000000">) {</span>
<span style="color: #000000">    </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #001080">job</span><span style="color: #000000">.</span><span style="color: #795E26">fail</span><span style="color: #000000">({</span>
<span style="color: #000000">       </span><span style="color: #001080">errorMessage:</span><span style="color: #000000"> </span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">message</span><span style="color: #000000">,</span>
<span style="color: #000000">       </span><span style="color: #001080">retryBackOff:</span><span style="color: #000000"> </span><span style="color: #098658">2000</span>
<span style="color: #000000">    })</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">}</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>WorkerInputVariables = <a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a></h4>
								</li>
								<li>
									<h4>CustomHeaderShape = <a href="../interfaces/ICustomHeaders.html" class="tsd-signature-type" data-tsd-kind="Interface">ICustomHeaders</a></h4>
								</li>
								<li>
									<h4>WorkerOutputVariables = <a href="../interfaces/IOutputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IOutputVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/ZBWorkerConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBWorkerConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="ZBWorker.html" class="tsd-signature-type" data-tsd-kind="Class">ZBWorker</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="deployProcess" class="tsd-anchor"></a>
					<h3>deploy<wbr>Process</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">deploy<wbr>Process<span class="tsd-signature-symbol">(</span>process<span class="tsd-signature-symbol">: </span><a href="../interfaces/DeployProcessBuffer.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployProcessBuffer</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#DeployProcessFiles" class="tsd-signature-type" data-tsd-kind="Type alias">DeployProcessFiles</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployProcessResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployProcessResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L867">src/zb/ZBClient.ts:867</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Deploy a process model.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">readFileSync</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;fs&#039;</span>
<span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">join</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;path&#039;</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">bpmnFilePath</span><span style="color: #000000"> = </span><span style="color: #795E26">join</span><span style="color: #000000">(</span><span style="color: #001080">process</span><span style="color: #000000">.</span><span style="color: #795E26">cwd</span><span style="color: #000000">(), </span><span style="color: #A31515">&#039;bpmn&#039;</span><span style="color: #000000">, </span><span style="color: #A31515">&#039;onboarding.bpmn&#039;</span><span style="color: #000000">)</span>

<span style="color: #008000">// Loading the process model allows you to perform modifications or analysis</span>
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">bpmn</span><span style="color: #000000"> = </span><span style="color: #795E26">readFileSync</span><span style="color: #000000">(</span><span style="color: #001080">bpmnFilePath</span><span style="color: #000000">, </span><span style="color: #A31515">&#039;utf8&#039;</span><span style="color: #000000">)</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">deployProcess</span><span style="color: #000000">({</span>
<span style="color: #000000">   </span><span style="color: #001080">definition:</span><span style="color: #000000"> </span><span style="color: #001080">bpmn</span><span style="color: #000000">,</span>
<span style="color: #000000">   </span><span style="color: #001080">name:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;onboarding.bpmn&#039;</span>
<span style="color: #000000">})</span>

<span style="color: #008000">// If you don&#039;t need access to model contents, simply pass a file path</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">deployProcess</span><span style="color: #000000">(</span><span style="color: #001080">bpmnFilePath</span><span style="color: #000000">)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>process: <a href="../interfaces/DeployProcessBuffer.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployProcessBuffer</a><span class="tsd-signature-symbol"> | </span><a href="../modules.html#DeployProcessFiles" class="tsd-signature-type" data-tsd-kind="Type alias">DeployProcessFiles</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployProcessResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployProcessResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="deployResource" class="tsd-anchor"></a>
					<h3>deploy<wbr>Resource</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">deploy<wbr>Resource<span class="tsd-signature-symbol">(</span>resource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>processFilename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{ </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>process<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployResourceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployResourceResponse</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ProcessDeployment.html" class="tsd-signature-type" data-tsd-kind="Interface">ProcessDeployment</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
						<li class="tsd-signature tsd-kind-icon">deploy<wbr>Resource<span class="tsd-signature-symbol">(</span>resource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>decisionFilename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{ </span>decision<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployResourceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployResourceResponse</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DecisionDeployment.html" class="tsd-signature-type" data-tsd-kind="Interface">DecisionDeployment</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L758">src/zb/ZBClient.ts:758</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Deploy a BPMN model or DMN table to the Zeebe cluster.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #AF00DB">import</span><span style="color: #000000"> {</span><span style="color: #001080">join</span><span style="color: #000000">} </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;path&#039;</span>
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">deployResource</span><span style="color: #000000">({ </span><span style="color: #001080">processFilename:</span><span style="color: #000000"> </span><span style="color: #795E26">join</span><span style="color: #000000">(</span><span style="color: #001080">process</span><span style="color: #000000">.</span><span style="color: #795E26">cwd</span><span style="color: #000000">(), </span><span style="color: #A31515">&#039;bpmn&#039;</span><span style="color: #000000">, </span><span style="color: #A31515">&#039;onboarding.bpmn&#039;</span><span style="color: #000000"> })</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">deployResource</span><span style="color: #000000">({ </span><span style="color: #001080">decisionFilename:</span><span style="color: #000000"> </span><span style="color: #795E26">join</span><span style="color: #000000">(</span><span style="color: #001080">process</span><span style="color: #000000">.</span><span style="color: #795E26">cwd</span><span style="color: #000000">(), </span><span style="color: #A31515">&#039;dmn&#039;</span><span style="color: #000000">, </span><span style="color: #A31515">&#039;approval.dmn&#039;</span><span style="color: #000000">)})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>resource: <span class="tsd-signature-symbol">{ </span>processFilename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{ </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>process<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> }</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployResourceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployResourceResponse</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ProcessDeployment.html" class="tsd-signature-type" data-tsd-kind="Interface">ProcessDeployment</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L763">src/zb/ZBClient.ts:763</a></li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>resource: <span class="tsd-signature-symbol">{ </span>decisionFilename<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{ </span>decision<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DeployResourceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">DeployResourceResponse</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/DecisionDeployment.html" class="tsd-signature-type" data-tsd-kind="Interface">DecisionDeployment</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="emit" class="tsd-anchor"></a>
					<h3>emit</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">emit&lt;K&gt;<span class="tsd-signature-symbol">(</span>eventName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, params<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;close&quot;</span><span class="tsd-signature-symbol">; </span>connectionError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;connectionError&quot;</span><span class="tsd-signature-symbol">; </span>ready<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ready&quot;</span><span class="tsd-signature-symbol">; </span>unknown<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;unknown&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from TypedEmitter.emit</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/TypedEmitter.ts#L25">src/lib/TypedEmitter.ts:25</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;close&quot;</span><span class="tsd-signature-symbol">; </span>connectionError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;connectionError&quot;</span><span class="tsd-signature-symbol">; </span>ready<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ready&quot;</span><span class="tsd-signature-symbol">; </span>unknown<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;unknown&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>eventName: <span class="tsd-signature-type">K</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> params: <span class="tsd-signature-symbol">{ </span>close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;close&quot;</span><span class="tsd-signature-symbol">; </span>connectionError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;connectionError&quot;</span><span class="tsd-signature-symbol">; </span>ready<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ready&quot;</span><span class="tsd-signature-symbol">; </span>unknown<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;unknown&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
					<a name="executeOperation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> execute<wbr>Operation</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
						<li class="tsd-signature tsd-kind-icon">execute<wbr>Operation&lt;T&gt;<span class="tsd-signature-symbol">(</span>operationName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, operation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span>, retries<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1319">src/zb/ZBClient.ts:1319</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>If this.retry is set true, the operation will be wrapped in an configurable retry on exceptions
										of gRPC error code 14 - Transient Network Failure.
										See: <a href="https://github.com/grpc/grpc/blob/master/doc/statuscodes.md">https://github.com/grpc/grpc/blob/master/doc/statuscodes.md</a>
									If this.retry is false, it will be executed with no retry, and the application should handle the exception.</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T</h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>operationName: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>operation: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>A gRPC command operation</p>
									</div>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> retries: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="failJob" class="tsd-anchor"></a>
					<h3>fail<wbr>Job</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">fail<wbr>Job<span class="tsd-signature-symbol">(</span>failJobRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/FailJobRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">FailJobRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L930">src/zb/ZBClient.ts:930</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Fail a job. This is useful if you are using the decoupled completion pattern or building your own worker.
										For the retry count, the current count is available in the job metadata.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">failJob</span><span style="color: #000000">( {</span>
<span style="color: #000000">  </span><span style="color: #001080">jobKey:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;345424343451&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">retries:</span><span style="color: #000000"> </span><span style="color: #098658">3</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">errorMessage:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;Could not get a response from the order invoicing API&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">retryBackOff:</span><span style="color: #000000"> </span><span style="color: #098658">30</span><span style="color: #000000"> * </span><span style="color: #098658">1000</span><span style="color: #000000"> </span><span style="color: #008000">// optional, otherwise available for reactivation immediately</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>failJobRequest: <a href="../interfaces/FailJobRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">FailJobRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="getServiceTypesFromBpmn" class="tsd-anchor"></a>
					<h3>get<wbr>Service<wbr>Types<wbr>From<wbr>Bpmn</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Service<wbr>Types<wbr>From<wbr>Bpmn<span class="tsd-signature-symbol">(</span>files<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L946">src/zb/ZBClient.ts:946</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Return an array of task types contained in a BPMN file or array of BPMN files. This can be useful, for example, to do</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">getServiceTypesFromBpmn</span><span style="color: #000000">([</span><span style="color: #A31515">&#039;bpmn/onboarding.bpmn&#039;</span><span style="color: #000000">, </span><span style="color: #A31515">&#039;bpmn/process-sale.bpmn&#039;</span><span style="color: #000000">])</span>
<span style="color: #000000">  .</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">tasktypes</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&#039;The task types are:&#039;</span><span style="color: #000000">, </span><span style="color: #001080">tasktypes</span><span style="color: #000000">))</span>

</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>files: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="modifyProcessInstance" class="tsd-anchor"></a>
					<h3>modify<wbr>Process<wbr>Instance</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">modify<wbr>Process<wbr>Instance<span class="tsd-signature-symbol">(</span>modifyProcessInstanceRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/ModifyProcessInstanceRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ModifyProcessInstanceRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">ModifyProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L972">src/zb/ZBClient.ts:972</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Modify a running process instance. This allows you to move the execution tokens, and change the variables. Added in 8.1.
										See the <a href="https://docs.camunda.io/docs/apis-clients/grpc/#modifyprocessinstance-rpc">gRPC protocol documentation</a>.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">createProcessInstance</span><span style="color: #000000">(</span><span style="color: #A31515">&#039;SkipFirstTask&#039;</span><span style="color: #000000">, {}).</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span>
<span style="color: #000000">     </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">modifyProcessInstance</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">processInstanceKey:</span><span style="color: #000000"> </span><span style="color: #001080">res</span><span style="color: #000000">.</span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">activateInstructions:</span><span style="color: #000000"> [{</span>
<span style="color: #000000">      </span><span style="color: #001080">elementId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;second_service_task&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">ancestorElementInstanceKey:</span><span style="color: #000000"> </span><span style="color: #A31515">&quot;-1&quot;</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">variableInstructions:</span><span style="color: #000000"> [{</span>
<span style="color: #000000">        </span><span style="color: #001080">scopeId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">        </span><span style="color: #001080">variables:</span><span style="color: #000000"> { </span><span style="color: #001080">second:</span><span style="color: #000000"> </span><span style="color: #098658">1</span><span style="color: #000000">}</span>
<span style="color: #000000">      }]</span>
<span style="color: #000000">    }]</span>
<span style="color: #000000">     })</span>
<span style="color: #000000">)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>modifyProcessInstanceRequest: <a href="../interfaces/ModifyProcessInstanceRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ModifyProcessInstanceRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ModifyProcessInstanceResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">ModifyProcessInstanceResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="off" class="tsd-anchor"></a>
					<h3>off</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">off&lt;K&gt;<span class="tsd-signature-symbol">(</span>eventName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventReceiver</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from TypedEmitter.off</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/TypedEmitter.ts#L21">src/lib/TypedEmitter.ts:21</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;close&quot;</span><span class="tsd-signature-symbol">; </span>connectionError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;connectionError&quot;</span><span class="tsd-signature-symbol">; </span>ready<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ready&quot;</span><span class="tsd-signature-symbol">; </span>unknown<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;unknown&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>eventName: <span class="tsd-signature-type">K</span></h5>
								</li>
								<li>
									<h5>fn: <span class="tsd-signature-type">EventReceiver</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="on" class="tsd-anchor"></a>
					<h3>on</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">on&lt;K&gt;<span class="tsd-signature-symbol">(</span>eventName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventReceiver</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from TypedEmitter.on</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/TypedEmitter.ts#L16">src/lib/TypedEmitter.ts:16</a></li>
								</ul>
							</aside>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EventKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;close&quot;</span><span class="tsd-signature-symbol">; </span>connectionError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;connectionError&quot;</span><span class="tsd-signature-symbol">; </span>ready<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ready&quot;</span><span class="tsd-signature-symbol">; </span>unknown<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;unknown&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>eventName: <span class="tsd-signature-type">K</span></h5>
								</li>
								<li>
									<h5>fn: <span class="tsd-signature-type">EventReceiver</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="ZBClient.html" class="tsd-signature-type" data-tsd-kind="Class">ZBClient</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="publishMessage" class="tsd-anchor"></a>
					<h3>publish<wbr>Message</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">publish<wbr>Message&lt;ProcessVariables&gt;<span class="tsd-signature-symbol">(</span>publishMessageRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/PublishMessageRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ProcessVariables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/PublishMessageResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L998">src/zb/ZBClient.ts:998</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Publish a message to the broker for correlation with a workflow instance. See <a href="https://docs.camunda.io/docs/guides/message-correlation/">this tutorial</a> for a detailed description of message correlation.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">publishMessage</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #008000">// Should match the &quot;Message Name&quot; in a BPMN Message Catch</span>
<span style="color: #000000">  </span><span style="color: #001080">name:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;order_status&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">correlationKey:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;uuid-124-532-5432&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variables:</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #001080">event:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;PROCESSED&#039;</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>ProcessVariables<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{}</span> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>publishMessageRequest: <a href="../interfaces/PublishMessageRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ProcessVariables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/PublishMessageResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="publishStartMessage" class="tsd-anchor"></a>
					<h3>publish<wbr>Start<wbr>Message</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">publish<wbr>Start<wbr>Message&lt;ProcessVariables&gt;<span class="tsd-signature-symbol">(</span>publishStartMessageRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/PublishStartMessageRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishStartMessageRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ProcessVariables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/PublishMessageResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1041">src/zb/ZBClient.ts:1041</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Publish a message to the broker for correlation with a workflow message start event.
											For a message targeting a start event, the correlation key is not needed to target a specific running process instance.
											However, the hash of the correlationKey is used to determine the partition where this workflow will start.
										So we assign a random uuid to balance workflow instances created via start message across partitions.</p>
										<p>We make the correlationKey optional, because the caller can specify a correlationKey + messageId
										to guarantee an idempotent message.</p>
										<p>Multiple messages with the same correlationKey + messageId combination will only start a workflow once.
										See: <a href="https://github.com/zeebe-io/zeebe/issues/1012">https://github.com/zeebe-io/zeebe/issues/1012</a> and <a href="https://github.com/zeebe-io/zeebe/issues/1022">https://github.com/zeebe-io/zeebe/issues/1022</a></p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">publishStartMessage</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">name:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;Start_New_Onboarding_Flow&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variables:</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #001080">customerId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;uuid-348-234-8908&#039;</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">})</span>

<span style="color: #008000">// To do the same in an idempotent fashion - note: only idempotent during the lifetime of the created instance.</span>
<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">publishStartMessage</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">name:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;Start_New_Onboarding_Flow&#039;</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">messageId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;uuid-348-234-8908&#039;</span><span style="color: #000000">, </span><span style="color: #008000">// use customerId to make process idempotent per customer</span>
<span style="color: #000000">  </span><span style="color: #001080">variables:</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #001080">customerId:</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;uuid-348-234-8908&#039;</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>ProcessVariables<span class="tsd-signature-symbol">: </span><a href="../interfaces/IInputVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IInputVariables</a> = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>publishStartMessageRequest: <a href="../interfaces/PublishStartMessageRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishStartMessageRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ProcessVariables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/PublishMessageResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">PublishMessageResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="removeAllListeners" class="tsd-anchor"></a>
					<h3>remove<wbr>All<wbr>Listeners</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>All<wbr>Listeners<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from TypedEmitter.removeAllListeners</p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/TypedEmitter.ts#L29">src/lib/TypedEmitter.ts:29</a></li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="resolveIncident" class="tsd-anchor"></a>
					<h3>resolve<wbr>Incident</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">resolve<wbr>Incident<span class="tsd-signature-symbol">(</span>resolveIncidentRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/ResolveIncidentRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ResolveIncidentRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1101">src/zb/ZBClient.ts:1101</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Resolve an incident by incident key.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">type</span><span style="color: #000000"> </span><span style="color: #267F99">JSONObject</span><span style="color: #000000"> = {[</span><span style="color: #001080">key</span><span style="color: #000000">: </span><span style="color: #267F99">string</span><span style="color: #000000">]: </span><span style="color: #267F99">string</span><span style="color: #000000"> | </span><span style="color: #267F99">number</span><span style="color: #000000"> | </span><span style="color: #267F99">boolean</span><span style="color: #000000"> | </span><span style="color: #267F99">JSONObject</span><span style="color: #000000">}</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">async</span><span style="color: #000000"> </span><span style="color: #795E26">updateAndResolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceId</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variables</span>
<span style="color: #000000">} : {</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceId:</span><span style="color: #000000"> </span><span style="color: #001080">string</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey:</span><span style="color: #000000"> </span><span style="color: #001080">string</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variables:</span><span style="color: #000000"> </span><span style="color: #001080">JSONObject</span>
<span style="color: #000000">}) {</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">setVariables</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">elementInstanceKey:</span><span style="color: #000000"> </span><span style="color: #001080">processInstanceId</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">variables</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">updateRetries</span><span style="color: #000000">()</span>
<span style="color: #000000">  </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">resolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">incidentKey</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">resolveIncident</span><span style="color: #000000">(</span><span style="color: #001080">incidentKey</span><span style="color: #000000">)</span>
<span style="color: #000000">}</span>

</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>resolveIncidentRequest: <a href="../interfaces/ResolveIncidentRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ResolveIncidentRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
					<a name="retryOnFailure" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagPrivate">Private</span> retry<wbr>OnFailure</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
						<li class="tsd-signature tsd-kind-icon">retry<wbr>OnFailure&lt;T&gt;<span class="tsd-signature-symbol">(</span>operationName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, operation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span>, retries<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1351">src/zb/ZBClient.ts:1351</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>This function takes a gRPC operation that returns a Promise as a function, and invokes it.
										If the operation throws gRPC error 14, this function will continue to try it until it succeeds
									or retries are exhausted.</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T</h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>operationName: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>operation: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>A gRPC command operation that may fail if the broker is not available</p>
									</div>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5>retries: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = ...</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
					<a name="setVariables" class="tsd-anchor"></a>
					<h3>set<wbr>Variables</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Variables&lt;Variables&gt;<span class="tsd-signature-symbol">(</span>request<span class="tsd-signature-symbol">: </span><a href="../interfaces/SetVariablesRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SetVariablesRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1143">src/zb/ZBClient.ts:1143</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Directly modify the variables is a process instance. This can be used with <code>resolveIncident</code> to update the process and resolve an incident.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">type</span><span style="color: #000000"> </span><span style="color: #267F99">JSONObject</span><span style="color: #000000"> = {[</span><span style="color: #001080">key</span><span style="color: #000000">: </span><span style="color: #267F99">string</span><span style="color: #000000">]: </span><span style="color: #267F99">string</span><span style="color: #000000"> | </span><span style="color: #267F99">number</span><span style="color: #000000"> | </span><span style="color: #267F99">boolean</span><span style="color: #000000"> | </span><span style="color: #267F99">JSONObject</span><span style="color: #000000">}</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #0000FF">async</span><span style="color: #000000"> </span><span style="color: #0000FF">function</span><span style="color: #000000"> </span><span style="color: #795E26">updateAndResolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variableUpdate</span>
<span style="color: #000000">} : {</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">jobKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">variableUpdate</span><span style="color: #000000">: </span><span style="color: #267F99">JSONObject</span>
<span style="color: #000000">}) {</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">setVariables</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">elementInstanceKey:</span><span style="color: #000000"> </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">variables:</span><span style="color: #000000"> </span><span style="color: #001080">variableUpdate</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">updateJobRetries</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">retries:</span><span style="color: #000000"> </span><span style="color: #098658">1</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">resolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">incidentKey</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">}</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>Variables = <a href="../interfaces/IProcessVariables.html" class="tsd-signature-type" data-tsd-kind="Interface">IProcessVariables</a></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>request: <a href="../interfaces/SetVariablesRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">SetVariablesRequest</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Variables</span><span class="tsd-signature-symbol">&gt;</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="throwError" class="tsd-anchor"></a>
					<h3>throw<wbr>Error</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">throw<wbr>Error<span class="tsd-signature-symbol">(</span>throwErrorRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/ThrowErrorRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ThrowErrorRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1202">src/zb/ZBClient.ts:1202</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Fail a job by throwing a business error (i.e. non-technical) that occurs while processing a job.
											The error is handled in the workflow by an error catch event.
											If there is no error catch event with the specified <code>errorCode</code> then an incident will be raised instead.
										This method is useful when building a worker, for example for the decoupled completion pattern.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">type</span><span style="color: #000000"> </span><span style="color: #267F99">JSONObject</span><span style="color: #000000"> = {[</span><span style="color: #001080">key</span><span style="color: #000000">: </span><span style="color: #267F99">string</span><span style="color: #000000">]: </span><span style="color: #267F99">string</span><span style="color: #000000"> | </span><span style="color: #267F99">number</span><span style="color: #000000"> | </span><span style="color: #267F99">boolean</span><span style="color: #000000"> | </span><span style="color: #267F99">JSONObject</span><span style="color: #000000">}</span>

<span style="color: #0000FF">interface</span><span style="color: #000000"> </span><span style="color: #267F99">errorResult</span><span style="color: #000000"> {</span>
<span style="color: #000000">  </span><span style="color: #001080">resultType</span><span style="color: #000000">: </span><span style="color: #A31515">&#039;ERROR&#039;</span><span style="color: #000000"> </span><span style="color: #267F99">as</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;ERROR&#039;</span>
<span style="color: #000000">     </span><span style="color: #001080">errorCode</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">errorMessage</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">}</span>

<span style="color: #0000FF">interface</span><span style="color: #000000"> </span><span style="color: #267F99">successResult</span><span style="color: #000000"> {</span>
<span style="color: #000000">  </span><span style="color: #001080">resultType</span><span style="color: #000000">: </span><span style="color: #A31515">&#039;SUCCESS&#039;</span><span style="color: #000000"> </span><span style="color: #267F99">as</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;SUCCESS&#039;</span>
<span style="color: #000000">  </span><span style="color: #001080">variableUpdate</span><span style="color: #000000">: </span><span style="color: #267F99">JSONObject</span>
<span style="color: #000000">}</span>

<span style="color: #0000FF">type</span><span style="color: #000000"> </span><span style="color: #267F99">Result</span><span style="color: #000000"> = </span><span style="color: #267F99">errorResult</span><span style="color: #000000"> | </span><span style="color: #267F99">successResult</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>


<span style="color: #008000">// This could be a listener on a return queue from an external system</span>
<span style="color: #0000FF">async</span><span style="color: #000000"> </span><span style="color: #0000FF">function</span><span style="color: #000000"> </span><span style="color: #795E26">handleJob</span><span style="color: #000000">(</span><span style="color: #001080">jobKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span><span style="color: #000000">, </span><span style="color: #001080">result</span><span style="color: #000000">: </span><span style="color: #267F99">Result</span><span style="color: #000000">) {</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">if</span><span style="color: #000000"> (</span><span style="color: #001080">resultType</span><span style="color: #000000"> === </span><span style="color: #A31515">&#039;ERROR&#039;</span><span style="color: #000000">) {</span>
<span style="color: #000000">    </span><span style="color: #0000FF">const</span><span style="color: #000000"> { </span><span style="color: #0070C1">errorMessage</span><span style="color: #000000">, </span><span style="color: #0070C1">errorCode</span><span style="color: #000000"> } = </span><span style="color: #001080">result</span>
<span style="color: #000000">        </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">throwError</span><span style="color: #000000">({</span>
<span style="color: #000000">       </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">       </span><span style="color: #001080">errorCode</span><span style="color: #000000">,</span>
<span style="color: #000000">          </span><span style="color: #001080">errorMessage</span>
<span style="color: #000000">    })</span>
<span style="color: #000000">  } </span><span style="color: #AF00DB">else</span><span style="color: #000000"> {</span>
<span style="color: #000000">    </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">completeJob</span><span style="color: #000000">({</span>
<span style="color: #000000">      </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">      </span><span style="color: #001080">variables:</span><span style="color: #000000"> </span><span style="color: #001080">result</span><span style="color: #000000">.</span><span style="color: #001080">variableUpdate</span>
<span style="color: #000000">    })</span>
<span style="color: #000000">  }</span>
<span style="color: #000000">}</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>throwErrorRequest: <a href="../interfaces/ThrowErrorRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">ThrowErrorRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="topology" class="tsd-anchor"></a>
					<h3>topology</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">topology<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/TopologyResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">TopologyResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1217">src/zb/ZBClient.ts:1217</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Return the broker cluster topology.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">topology</span><span style="color: #000000">().</span><span style="color: #795E26">then</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000"> </span><span style="color: #0000FF">=&gt;</span><span style="color: #000000"> </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">res</span><span style="color: #000000">(</span><span style="color: #267F99">JSON</span><span style="color: #000000">.</span><span style="color: #795E26">stringify</span><span style="color: #000000">(</span><span style="color: #001080">res</span><span style="color: #000000">, </span><span style="color: #0000FF">null</span><span style="color: #000000">, </span><span style="color: #098658">2</span><span style="color: #000000">)))</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/TopologyResponse.html" class="tsd-signature-type" data-tsd-kind="Interface">TopologyResponse</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="updateJobRetries" class="tsd-anchor"></a>
					<h3>update<wbr>Job<wbr>Retries</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">update<wbr>Job<wbr>Retries<span class="tsd-signature-symbol">(</span>updateJobRetriesRequest<span class="tsd-signature-symbol">: </span><a href="../interfaces/UpdateJobRetriesRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">UpdateJobRetriesRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/zb/ZBClient.ts#L1255">src/zb/ZBClient.ts:1255</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>description</dt>
									<dd><p>Update the number of retries for a Job. This is useful if a job has zero remaining retries and fails, raising an incident.</p>
									</dd>
									<dt>example</dt>
									<dd><pre><code><span style="color: #0000FF">type</span><span style="color: #000000"> </span><span style="color: #267F99">JSONObject</span><span style="color: #000000"> = {[</span><span style="color: #001080">key</span><span style="color: #000000">: </span><span style="color: #267F99">string</span><span style="color: #000000">]: </span><span style="color: #267F99">string</span><span style="color: #000000"> | </span><span style="color: #267F99">number</span><span style="color: #000000"> | </span><span style="color: #267F99">boolean</span><span style="color: #000000"> | </span><span style="color: #267F99">JSONObject</span><span style="color: #000000">}</span>

<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">zbc</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">ZBClient</span><span style="color: #000000">()</span>

<span style="color: #0000FF">async</span><span style="color: #000000"> </span><span style="color: #0000FF">function</span><span style="color: #000000"> </span><span style="color: #795E26">updateAndResolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">  </span><span style="color: #001080">variableUpdate</span>
<span style="color: #000000">} : {</span>
<span style="color: #000000">  </span><span style="color: #001080">incidentKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">jobKey</span><span style="color: #000000">: </span><span style="color: #267F99">string</span>
<span style="color: #000000">  </span><span style="color: #001080">variableUpdate</span><span style="color: #000000">: </span><span style="color: #267F99">JSONObject</span>
<span style="color: #000000">}) {</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">setVariables</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">elementInstanceKey:</span><span style="color: #000000"> </span><span style="color: #001080">processInstanceKey</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">variables:</span><span style="color: #000000"> </span><span style="color: #001080">variableUpdate</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">updateJobRetries</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">jobKey</span><span style="color: #000000">,</span>
<span style="color: #000000">    </span><span style="color: #001080">retries:</span><span style="color: #000000"> </span><span style="color: #098658">1</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">  </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #001080">zbc</span><span style="color: #000000">.</span><span style="color: #795E26">resolveIncident</span><span style="color: #000000">({</span>
<span style="color: #000000">    </span><span style="color: #001080">incidentKey</span>
<span style="color: #000000">  })</span>
<span style="color: #000000">}</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>updateJobRetriesRequest: <a href="../interfaces/UpdateJobRetriesRequest.html" class="tsd-signature-type" data-tsd-kind="Interface">UpdateJobRetriesRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class">
						<a href="ZBClient.html" class="tsd-kind-icon">ZBClient</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
								<a href="ZBClient.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#basicAuth" class="tsd-kind-icon">basic<wbr>Auth</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#closePromise" class="tsd-kind-icon">close<wbr>Promise</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#closing" class="tsd-kind-icon">closing</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#connected" class="tsd-kind-icon">connected</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#connectionTolerance" class="tsd-kind-icon">connection<wbr>Tolerance</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#customSSL" class="tsd-kind-icon">customSSL</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#gatewayAddress" class="tsd-kind-icon">gateway<wbr>Address</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#grpc" class="tsd-kind-icon">grpc</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#logger" class="tsd-kind-icon">logger</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#loglevel" class="tsd-kind-icon">loglevel</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#maxRetries" class="tsd-kind-icon">max<wbr>Retries</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#maxRetryTimeout" class="tsd-kind-icon">max<wbr>Retry<wbr>Timeout</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#oAuth" class="tsd-kind-icon">o<wbr>Auth</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#onConnectionError" class="tsd-kind-icon">on<wbr>Connection<wbr>Error</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#onReady" class="tsd-kind-icon">on<wbr>Ready</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#options" class="tsd-kind-icon">options</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="ZBClient.html#readied" class="tsd-kind-icon">readied</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#retry" class="tsd-kind-icon">retry</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#stdout" class="tsd-kind-icon">stdout</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#useTLS" class="tsd-kind-icon">useTLS</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#workerCount" class="tsd-kind-icon">worker<wbr>Count</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#workers" class="tsd-kind-icon">workers</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="ZBClient.html#DEFAULT_CONNECTION_TOLERANCE" class="tsd-kind-icon">DEFAULT_<wbr>CONNECTION_<wbr>TOLERANCE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="ZBClient.html#DEFAULT_LONGPOLL_PERIOD" class="tsd-kind-icon">DEFAULT_<wbr>LONGPOLL_<wbr>PERIOD</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="ZBClient.html#DEFAULT_MAX_RETRIES" class="tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRIES</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="ZBClient.html#DEFAULT_MAX_RETRY_TIMEOUT" class="tsd-kind-icon">DEFAULT_<wbr>MAX_<wbr>RETRY_<wbr>TIMEOUT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="ZBClient.html#DEFAULT_POLL_INTERVAL" class="tsd-kind-icon">DEFAULT_<wbr>POLL_<wbr>INTERVAL</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#_onConnectionError" class="tsd-kind-icon">_on<wbr>Connection<wbr>Error</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#activateJobs" class="tsd-kind-icon">activate<wbr>Jobs</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#cancelProcessInstance" class="tsd-kind-icon">cancel<wbr>Process<wbr>Instance</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#close" class="tsd-kind-icon">close</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#completeJob" class="tsd-kind-icon">complete<wbr>Job</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
								<a href="ZBClient.html#constructGrpcClient" class="tsd-kind-icon">construct<wbr>Grpc<wbr>Client</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#createBatchWorker" class="tsd-kind-icon">create<wbr>Batch<wbr>Worker</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#createProcessInstance" class="tsd-kind-icon">create<wbr>Process<wbr>Instance</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#createProcessInstanceWithResult" class="tsd-kind-icon">create<wbr>Process<wbr>Instance<wbr>With<wbr>Result</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#createWorker" class="tsd-kind-icon">create<wbr>Worker</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#deployProcess" class="tsd-kind-icon">deploy<wbr>Process</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#deployResource" class="tsd-kind-icon">deploy<wbr>Resource</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="ZBClient.html#emit" class="tsd-kind-icon">emit</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
								<a href="ZBClient.html#executeOperation" class="tsd-kind-icon">execute<wbr>Operation</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#failJob" class="tsd-kind-icon">fail<wbr>Job</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#getServiceTypesFromBpmn" class="tsd-kind-icon">get<wbr>Service<wbr>Types<wbr>From<wbr>Bpmn</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#modifyProcessInstance" class="tsd-kind-icon">modify<wbr>Process<wbr>Instance</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="ZBClient.html#off" class="tsd-kind-icon">off</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="ZBClient.html#on" class="tsd-kind-icon">on</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#publishMessage" class="tsd-kind-icon">publish<wbr>Message</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#publishStartMessage" class="tsd-kind-icon">publish<wbr>Start<wbr>Message</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="ZBClient.html#removeAllListeners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#resolveIncident" class="tsd-kind-icon">resolve<wbr>Incident</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private">
								<a href="ZBClient.html#retryOnFailure" class="tsd-kind-icon">retry<wbr>OnFailure</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
								<a href="ZBClient.html#setVariables" class="tsd-kind-icon">set<wbr>Variables</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#throwError" class="tsd-kind-icon">throw<wbr>Error</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#topology" class="tsd-kind-icon">topology</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="ZBClient.html#updateJobRetries" class="tsd-kind-icon">update<wbr>Job<wbr>Retries</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>